<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/3/10
  Time: 15:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
    String rootPath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()+"/";
%>
<html>
<head>
    <title>Title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="../assets/css/page-min.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <table border="1">
        <tr>
         <td>id</td>
             <td>用户名</td>
             <td>密码</td>
             <td>操作</td>
        </tr>
        <c:forEach items="${userList}" var="user">
            <tr>
                <td>${user.id}</td>
                <td>${user.userName}</td>
                <td>${user.password}</td>
                <td><a href="${pageContext.request.contextPath }/user/editUser/${user.id}.do">修改</a> <a href="${pageContext.request.contextPath }/user/deleteUser/${user.id}.do ">删除</a></td>
            </tr>
        </c:forEach>
    </table>

       <h1> <a href="${pageContext.request.contextPath }/user/addUser.do">新增</a></h1>

</body>
</html>
